//
//  BankInfo.m
//  HWZB
//
//  Created by 许成雄 on 2017/5/7.
//  Copyright © 2017年 wonders. All rights reserved.
//

#import "BankInfo.h"

@implementation BankInfo

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
    return @{
             @"bankId" : @"id",
             @"bank" : @"bankName"
             };
}

+ (NSValueTransformer *)bankIdJSONTransformer {
    return [MTLValueTransformer transformerWithBlock:^id(id value) {
        if([value isKindOfClass:[NSNumber class]]) {
            return [value stringValue];
        } else {
            return (NSString *)value;
        }
    }];
}

@end
